<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no minimal-ui">
    <title></title>
    <link rel="stylesheet" href="css/css.css"/>
</head>
<body>
    <div class="main">
        <h1>
            AIBinance | 提醒创造价值
        </h1>
        <p>
            AIBinance 主要是为数字货币投资者提供高低提醒合约提醒、背离提醒、智能选币、牛熊仓位、策略跟单服务. 帮助投资者控制风险, 实现盈利.
        </p>

    </div>
    <div class="footer">
        <div>
            <img src="img/img_download_logo.png" alt=""/>
            <span >长按复制邀请码：<span id='code'></span></span>
            <a href="">点击下载</a>
        </div>
    </div>
    <script src="jquery-3.1.1.min.js"></script>
	<script>
        $(function(){
            let id = GetQueryString('id');
            $.ajax({
                url:'http://47.52.188.179/public/index.php/bannerDetail?id='+id,
                method:'get',
                success:function(ref){
                    $('.main').html(ref.data.content);
                }
            });

        })



		let code = GetQueryString('code');
		if(!code) code = '';
		document.getElementById('code').innerText = code;
		console.log(code);
		function GetQueryString(name)
		{
			let reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");
			let r = window.location.search.substr(1).match(reg);
			if(r!=null)return  unescape(r[2]); return null;
		}
	</script>
</body>
</html>